#每个页面类：都封装本页面和该业务（登录业务)有关有关的UI操作

#首页
from selenium.webdriver.common.by import By

from utils.webUtils import PageBase

class PageIndex(PageBase):
    url="/"
    loc_loginButton=By.CSS_SELECTOR,"a[href='/simple/login']"

    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)

    #打开网页
    def openUrl(self):
        self.open(PageIndex.url)

    #点击“登录”按钮
    def click_loginButton(self):
        self.click(PageIndex.loc_loginButton)